#include <sqlite3.h>
/* *********宏定义************** */

#define BUFSIZE 128

#define FD_NUM 1024

/* ************函数声明******** */
void server_getopt_long(int argc, char **argv);
int socket_server_init(char *listen_ip, int listen_port);
void printf_help(char *progname);
void sqlite(char *sqlite_filename, sqlite3 *db, char *sql, int (*callback)(void*, int, char**, char**));

/* ***********全局变量********* */
//socket
extern int                listen_port;

//sqlite
extern  char              *sqlite_filename;
extern  char              *table_name;
extern sqlite3            *db;
extern char               sql[128];
